using System;
using System.Data;
using System.Collections.Generic;
using System.Collections;
using log4net;
using FSS.BLL.Entities;
namespace FSS.BLL.Services
{
	#region GroupService

	/// <summary>
	/// GroupService object for Ibatis mapped table 'Group'.
	/// </summary>
	public class GroupService : IGroupService
	{
		private static readonly ILog log = LogManager.GetLogger(typeof(GroupService).Name);
	  	private static volatile GroupService _GroupService = null;
        public static GroupService GetInstance()
        {
            if (_GroupService == null)
            {
                lock (typeof(GroupService))
                {
                    if (_GroupService == null) // double-check
                        _GroupService = new GroupService();
                }
            }
            return _GroupService;
        }
		public GroupService()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        public int GroupUpdateCheck(GroupEntity objE)
        {
            try
            {
                ExecuteUpdate("GroupUpdateCheck", objE);
                return 1;
            }
            catch (Exception ex)
            {
                log.Debug(ex.Message);
                return 0;
            }
        }
	}
	#endregion  
}
